package cn.daichi.redisidempotency.service;

import javax.servlet.http.HttpServletRequest;

public interface IdempotencyService {

    /**
     * 创建幂等接口
     *
     * @return 校验幂等token
     */
    String createIdempotencyToken();

    boolean checkIdempotency(HttpServletRequest request);

}
